package com.fqxl.labour.controller;

import com.fqxl.labour.domain.vo.PageVo;
import com.fqxl.labour.service.SearchService;
import com.fqxl.labour.untils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/search")
@Api(tags = "搜索")
public class SearchController {

    @Autowired
    private SearchService searchService;

    /**
     * 搜索功能
     * @param pageVo
     * @return
     */
    @ApiOperation("搜索功能")
    @PostMapping("/searchSelect")
    public R searchSelect(@RequestBody PageVo pageVo){
        return searchService.searchSelect(pageVo);
    }
}
